Skip to content

Conversation

@pfhorman
Copy link

@pfhorman pfhorman commented Dec 4, 2015

This is the fix as described in issue 50. I ran across the issue on Jenkins running on Windows server. The problem is that all the file keys in the FileModelProxy use the file separator for the system (*nix='/', windows=''), but the String name here comes from getRestOfPath() which prefers the url forward slash (which doesn't work for the Windows keys). To transform the "rest of path" to the true file key, we must convert any '/' in the name to the File.separator for the system.

@pfhorman
Copy link
Author

pfhorman commented Dec 4, 2015

I should mention this is only an issue if your files are located within subfolders and your Jenkins is running on Windows. I confirmed it was still an issue in the latest snapshot and this change fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant